package clients;

/*
This file is part of Open Grid Job Management System (OGJMS).

OGJMS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

OGJMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with OGJMS.  If not, see <http://www.gnu.org/licenses/>.

The entire and newest source code can be found at http://code.google.com/p/ogjms/  
*/

public class Optiuni {
	private static String host="https://stefan.grid:8443/";
	private static String user="stefan";
	private static String password="stefan";
	private static String userURL="gsiftp://stefan.grid/home/stefan/";
	private static String hostURL="gsiftp://stefan.grid/tmp/";
	
	private static String proxyFile="/tmp/x509up_u1000";
	
	private static String factoryURL="wsrf/services/jobManagement/FactoryService";
	private static String serviceURL="wsrf/services/jobManagement/JobManagementService";
	private static String reliableFileTransfer="wsrf/services/ReliableFileTransferService";
	private static String reliableFileTransferFactory="wsrf/services/ReliableFileTransferFactoryService";
	private static String certFile="usercert.pem";
	private static String keyFile="userkey.pem";
	private static String jobFolder="jobs";
	
	private static String delegationURL="wsrf/services/DelegationFactoryService";
	
	
	public static String getCertFile() {
		return "/home/"+user+"/.globus/"+certFile;
	}
	public static String getKeyFile() {
		return "/home/"+user+"/.globus/"+keyFile;
	}
	
	public static String getJobFolder(){
		return jobFolder;
	}
	public static String getJobFolderFullPath() {
		return "/home/"+user+"/"+getJobFolder();
	}
	
	public static String getHost() {
		return host;
	}
	public static void setHost(String host) {
		Optiuni.host = host;
	}
	public static String getUser() {
		return user;
	}
	public static void setUser(String user) {
		Optiuni.user = user;
	}
	public static String getPassword() {
		return password;
	}
	public static void setPassword(String password) {
		Optiuni.password = password;
	}
	public static String getUserURL() {
		return userURL;
	}
	public static void setUserURL(String userURL) {
		Optiuni.userURL = userURL;
	}
	public static String getHostURL() {
		return hostURL;
	}
	public static void setHostURL(String hostURL) {
		Optiuni.hostURL = hostURL;
	}
	public static String getProxyFile() {
		return proxyFile;
	}
	public static void setProxyFile(String proxyFile) {
		Optiuni.proxyFile = proxyFile;
	}
	public static String getFactoryURL() {
		return host+factoryURL;
	}
	public static String getServiceURL() {
		return host+serviceURL;
	}
	public static String getReliableFileTransfer() {
		return host+reliableFileTransfer;
	}
	public static String getReliableFileTransferFactory() {
		return host+reliableFileTransferFactory;
	}
	public static void setJobFolder(String jobFolder) {
		Optiuni.jobFolder = jobFolder;
	}
		public static String getDelegationURL() {
		return host+delegationURL;
	}


}
